package com.rasenhund.android.grecorder.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.rasenhund.android.grecorder.common.Const;
import com.rasenhund.android.grecorder.schema.Record;

/**
 * 戦歴登録フローの基底クラス
 */
public class ConfirmBaseActivity extends Activity {
    
    public Record mRecord = null;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        getParam();
    }
    
    /**
     * パラメータの取得
     */
    void getParam(){
        
        Intent intent = getIntent();
        
        if(intent != null){
            mRecord = (Record)intent.getSerializableExtra(Const.KEY.KEY_RECORD);
        }
        
        if(mRecord == null){
            mRecord = new Record();
        }
    }
    
}
